package cate.game.rank.msg;

import cate.game.client.msg.ClientMsg;
import cate.game.client.msg.MsgConfig;
import cate.game.client.msg.MsgOutput;
import cate.game.client.msg.id.MsgIdBRank;
import cate.game.rank.po.Rank;
import easy.java.dev.note.NoteField;

import java.util.List;

@ClientMsg(title = "排行榜数据 の 返回")
public class SingleRankDataResp<E extends Rank> implements MsgOutput {
    @NoteField(value = "我的排名")
    public int myRank;

    @NoteField(value = "我的排行数据")
    public E my;

    @NoteField(value = "排行榜数据")
    public List<E> list;

    @NoteField(value = "排行榜id")
    public int rankId;

    @NoteField(value = "今日点赞次数")
    public int admireTimes;

    public SingleRankDataResp(){

    }

    public SingleRankDataResp(int rankId, int myRank, E my, List<E> list, int admireTimes) {
        this.myRank = myRank;
        this.my = my;
        this.list = list;
        this.rankId = rankId;
        this.admireTimes = admireTimes;
    }

    @Override
    public MsgConfig conf() {
        return MsgIdBRank.SINGLE_DATA_RESP;
    }
}
